package com.sg.business.model.workevent;

import com.mobnut.db.model.IContext;
import com.sg.business.model.UserTask;
import com.sg.business.model.Work;
import com.sg.business.model.WorkEventNoticeRule;

public class TaskCompletedEvent extends RuleBasedWorkEvent  implements ITaskEvent{

	private UserTask task;

	public TaskCompletedEvent(Work work, UserTask task, IContext context) {
		super(work, context);
		setRule(WorkEventNoticeRule
				.makeWorkEventNoticeRule(EVENT_WF_TASK_COMPLETED));
		this.task = task;
		setParameter("task", task);

	}

	public UserTask getTask() {
		return task;
	}
}
